package com.bsu.ascm.http;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;

public class AscmHttpClient extends BsuHttpClient{
//	private final String ascmurl = "http://10.25.31.225:8080/";
	private final String ascmurl = "http://cgb.fawcar.com.cn/";
//	private final String ascmpath = "falconweb/";
	private final String ascmpath = "qq/";
	private final String ascmservlet = "S1?";
	private final String ed = "utf-8";
	
	public AscmHttpClient(){
		super();
		this.setParams(ascmurl+ascmpath+ascmservlet, ed);
	}
	
	public String query(String cmdname,String param) throws ClientProtocolException, IOException{
		return this.getData("cmdname="+cmdname+"&"+param);
	}
}
